<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ConsultativeRestoreDetail.aspx.cs"
    Inherits="admin_Consultative_ConsultativeRestoreDetail" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>资讯评论信息管理</title>
    <link rel="stylesheet" href="../skin/style.css" type="text/css" />
    <script type="text/javascript" src="../../js/jquery.js"></script>
</head>
<body>
    <form id="form1" runat="server">
        <div class="itemtitle">
            <h3>评论标题：<%=Title %></h3>
        </div>
        <div class="itemtitle_tect">
            <ul>
                <li>通过用户管理，您可以进行编辑会员资料、用户组、权限、积分、授权会员勋章以及删除会员等操作；</li>
                <li>请先根据条件搜索用户，然后选择相应的操作。</li>
            </ul>
        </div>
        <div class="talbe_border">
            <asp:GridView ID="gvRestore" runat="server" Font-Overline="False" CellPadding="0" FooterStyle-CssClass="itemtitle"
                GridLines="None" AutoGenerateColumns="False" DataKeyNames="ID" CssClass="talbe_list" HeaderStyle-CssClass="itemtitle" OnRowDataBound="gvRestore_RowDataBound">
                <Columns>
                    <asp:TemplateField>
                        <ItemTemplate>
                            <asp:CheckBox runat="server" ID="CheckBox1" />
                        </ItemTemplate>
                        <HeaderStyle CssClass="th20 tou" />
                        <ItemStyle CssClass="nolet" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="用户名">
                        <ItemTemplate>
                            <%# Eval("UserName") %>
                        </ItemTemplate>
                        <ItemStyle CssClass="th80" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="内容">
                        <ItemTemplate>
                            <%# Eval("Detail") %>
                        </ItemTemplate>
                      <ItemStyle CssClass="left2" />
                    </asp:TemplateField>
                     <asp:TemplateField HeaderText="发布日期">
                        <ItemTemplate>
                            <asp:Label ID="Label1" runat="server" Text='<%# GetShortDate(Eval("AddDate").ToString()) %>'></asp:Label>
                        </ItemTemplate>
                      <ItemStyle CssClass="th80" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="操作">
                        <ItemTemplate>
                            <asp:LinkButton ID="lbtnDelete" runat="server"  OnClientClick="return confirm('你确定要删除吗?')" CommandArgument='<%# DataBinder.Eval(Container.DataItem,"ID") %>' OnCommand="lbtnDelete_Command">删除 </asp:LinkButton>|
                            <asp:LinkButton ID="lbtnShield" Font-Underline="false" runat="server" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "ID")+"|"+DataBinder.Eval(Container.DataItem, "Shield") %>'
                                Text='<%# DataBinder.Eval(Container.DataItem, "Shield").ToString()== "True" ? "屏蔽" : "未屏蔽"%>' OnCommand="lbtnShield_Command1"></asp:LinkButton>
                        </ItemTemplate>
                        <ItemStyle CssClass="th80" />
                    </asp:TemplateField>
                </Columns>
                <HeaderStyle CssClass="header" />
            </asp:GridView>
            <div class="Paging">
            <p>
            <asp:Label ID="lblPagination" runat="server" Text="Label"></asp:Label> </p>         
            </div>
        </div>
    </form>
</body>
</html>
